home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Atari Compendium
/
The Atari Compendium (Toad Computers) (1994).iso
/
files
/
umich
/
utils
/
unixt~3h
/
unixtkit.arc
/
man.arc
/
GREP.MAN
< prev
next >
Wrap
Text File
|
1988-03-28
|
1KB
|
67 lines
GREP ST-UNIX User's Manual GREP
COMMAND
grep search for a string in a file
FORMAT
grep [ option ] ... string [ file ] ...
DESCRIPTION
The file(s) are searched for lines containg _✓s_✓t_✓r_✓i_✓n_✓g. If the
match is successful the lines are printed. If more than one
file is to be searched the matched line is preceeded by the
filename.
OPTIONS
-v Only lines not containing string are displayed.
-x Only lines having a complete match are displayed.
-c A count of matching line is displayed.
-l The names of the files containing the matched lines are
displayed.
-n A line number of the matched line is displayed preceed-
ing the line.
-i The case of letters in the string and file are ignored
in the match.
-s Silent mode. Nothing is printed, only the error status
is returned.
EXAMPLE
To look for the string 'abc' in 'afile':
grep abc afile
Printed 10/April/1987 1st April 1987 1